#include <iostream>
#include <string>
#include <boost/algorithm/string.hpp>
#include <vector>

using namespace std;
int main()
{
    vector<string> tokens;
    const std::string str = "1:回文数 简单 : 1 3487";
    const std::string sep = ": \n\t";
    boost::split(tokens,str,boost::is_any_of(sep),boost::algorithm::token_compress_on);
    for(auto &str:tokens)
    {
        cout<<str<<endl;
    }
    return 0;
}